package com.taylor.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.taylor.seckill.pojo.User;
import com.taylor.seckill.vo.LoginVo;
import com.taylor.seckill.vo.ResponseBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author taylor
 * @since 2021-04-08
 */
public interface IUserService extends IService<User> {

    ResponseBean doLogin(LoginVo loginVo, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);
    /**
     * 根据cookie获取用户
     * @param userTiket
     * @return
     */
    User getUserByCookie(String userTiket , HttpServletRequest httpServletRequest , HttpServletResponse httpServletResponse);

}
